<ion-view class="" title="工作汇报" cache-view="false" >
  <div  class="content-color sub-header-sign ">
    <div class="row " style="height: 185px;margin-top: 12px">
      <div class="col col-50 text-center">
        <div style="width: 105px;height: 105px;
    border-radius: 50%;background-color: #ffffff;margin: auto">
          <img width=75 height=75 style="margin-top: 15px" src='img/default-avatar.png'/>
          <!--<img width=75 height=75 style="margin-top: 15px" ng-src="{{'data:image/png;base64,'+userImage || 'img/default-avatar.png'}}">-->
        </div>
        <!-- 部门-->
        <div class="text-white-middle" >{{userDepartment}}</div>
        <!-- 人员-->
        <div class="text-white-middle" style="margin-top: 5px;">{{userName}}</div>
      </div>
      <div class="col col-50 text-center">
        <!-- 年月日-->
        <div class="text-white-middle" >{{year}}年{{month}}月{{date}}日</div>
        <!-- 星期-->
        <div class="text-white-middle" >星期{{day}}</div>
        <!-- 时间-->
        <div class="text-white-big" style="margin-top: 30px">{{time}}&nbsp;&nbsp;<a class="text-green-middle">{{apm}}</a></div>
      </div>
    </div>
    <div class="color-blue-light" style="height: 225px;">
      <div class="row " style="padding-top: 10px">
        <div class="col col-33 text-center">
          <div class="text-white-middle" >项目</div>
        </div>
        <div class="col col-67 input-middle" style="margin-left: 10px">
          <input id="name" type="text" ng-model="task_name" ng-click="getProject()" >
        </div>
      </div>
      <div class="row " >
        <div class="col col-33 text-center">
          <div class="text-white-middle" >日期</div>
        </div>
        <div class="col col-67 " style="margin-left: 10px">
          <a class="button button-blue-white " ng-click="changeDate()">{{task_date}}</a>
          <!--<span class="input-middle " id="date" type="datetime" ng-model="task_date" on_tap="changeDate()" ></span>-->
        </div>
      </div>
      <div class="row " >
        <div class="col col-33 text-center">
          <div class="text-white-middle" >时间段</div>
        </div>
        <div class="col col-67 " style="margin-top: 10px">
          <div class="float-left" ng-repeat="item in radio_list" >
            <input  style="width: 20px;height: 20px;border-radius: 50%;"
            ng-value="item.value"
            ng-change="radioChange(item)"
            ng-model="data.apm"
            type="radio" ><a class="text-white-middle">{{ item.text }}</a>
          </div>
        </div>
      </div>
      <div class="row " style="margin-top: 5px">
        <div class="col col-67 text-center" >
          <textarea ng-click="scrollText()" style="margin-left:25px; width: 90%; border-radius:5%" id="taskDetail"  placeholder="这里可以输入详细内容" rows="3" ng-model="task_detail" ></textarea>
        </div>
        <div class="col col-33 text-center">
          <button class="button button-green-square " ng-click="submitReportData()">提交</button>
        </div>
      </div>
    </div>
  </div>
  <ion-content class="has-header content-color has-sub-header-report">


    <div class="list">
      <div class="row " ng-repeat="report in report_list">
        <div class="col col-25 text-center text-black-ellipsis">
          {{report.OperationDate| filterDate}}<br>
          {{report.TimeSlotEnum | filterApm}}
        </div>
        <div class="col col-50 text-black-ellipsis">
          {{report.ProjectName}}<br>
          {{report.WorkContent}}
        </div>
        <div class="col text-center" >
          <button class=" button button-yellow " ng-click="changeReport(report)">编辑</button>
        </div>

      </div>
    </div>

  </ion-content>
</ion-view>
